package Collestions_demo01;

import java.util.ArrayList;
import java.util.List;

public class AppleAndOrangeTest {
    public static void main(String[] args) {
        List<Apple> apples = new ArrayList<>();
        apples.add(new Apple());
            for (Apple ap :apples){
                System.out.println(ap.id(10));
            }
    }
}
